<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class BackPermission extends Model
{
    use HasFactory;

    protected $table = 'zfm_Permission';


    // BackPermission 模型中定义与 BackRole 模型的多对多关系
    public function roles()
    {
        return $this->belongsToMany(BackRole::class);
    }


}
